package com.mnxc.gxa.service;

import com.mnxc.gxa.dto.QueryUserDTO;
import com.mnxc.gxa.dto.Result;
import com.mnxc.gxa.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mnxc
 * @since 2023-06-29
 */
public interface IUserService extends IService<User> {
    Result getAll();

    Result getByPageAndCondition(Integer page, Integer pageSize, QueryUserDTO query);

    Result saveUser(User user);

    Result updateUser(User user);

    Result freezeUser(User user);

    Result activeUser(User user);

    Result deleteUser(User user);

    Result login(User user, HttpSession session);

    Result register(User user);

    Result getMenusById(Long id);

    Result getUserById(Integer id);

    Result resetPasswordByIds(List<Long> ids);
}
